package action.user;

import service.UserService;
import util.ObjectFactory;
import action.BaseAction;

public class CheckNumberAction extends BaseAction{
	//input 
	private String number;
	//output
	private boolean success=false;
	
	public String execute(){
		UserService service = ObjectFactory.getInstance(UserService.class);
		if(service.checkNumber(number,session)){
			success=true;
		}
		return "success";
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

}
